package com.zd.service.lmpl;/**
 * @Description: TmsRegionServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-05
 * @Version:v1.0
 */

import com.zd.mapper.TmsRegionMapper;
import com.zd.service.lnter.TmsRegionServicelnter;
import com.zzg.entity.TmsRegion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: TmsRegionServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-05
 * @Version:v1.0
 */
@Service
public class TmsRegionServicelmpl implements TmsRegionServicelnter {
    @Autowired
    private TmsRegionMapper tailafterMapper;
    /**
     * 根据id查询地区信息
     *
     * @param regionid 地区id
     * @return 地区对象
     */
    @Override
    public TmsRegion selectregionByid(String regionid) {
        return tailafterMapper.selectregionByid (regionid);
    }

    /**
     * 根据id修改地区信息
     *
     * @param regionid 地区id
     * @param getcity  市
     * @return 返回数值判断是否成功
     */
    @Override
    public int upateTmsRegion(String regionid, String getcity) {
        return tailafterMapper.upateTmsRegion (regionid,getcity);
    }
}
